﻿using SqlSugar;

namespace XieCan.Core.Entity
{
  public partial class BaseEntity
  {
    /// <summary>
    /// 唯一编号
    /// </summary>
    [SugarColumn(IsPrimaryKey = true, ColumnDescription = "唯一编号")]
    public Guid Id { get; set; } = new Guid();
    /// <summary>
    /// 创建者Id
    /// </summary>
    [SugarColumn(ColumnDescription = "创建者Id", IsNullable = true)]
    public string? CreatorId { get; set; } = default;
    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(ColumnDescription = "创建时间")]
    public DateTime? CreateTime { get; set; } = DateTime.Now;
    /// <summary>
    /// 是否删除
    /// </summary>
    [SugarColumn(ColumnDescription = "是否删除")]
    public bool IsDeleted { get; set; } = false;
    /// <summary>
    /// 删除者Id
    /// </summary>
    [SugarColumn(ColumnDescription = "删除者Id", IsNullable = true)]
    public string? DeletorId { get; set; } = default;
    /// <summary>
    /// 删除时间
    /// </summary>
    [SugarColumn(ColumnDescription = "删除时间", IsNullable = true)]
    public DateTime? DeleteTime { get; set; } = default;
  }
}
